/*
 * @Author: HeAo
 * @Date: 2021-11-01 16:16:33
 * @LastEditTime: 2021-11-01 16:41:51
 * @LastEditors: HeAo
 * @Description:
 * @FilePath: \web2103-2105\web2105\4-1-Nodejs\day02\2-server.js
 * 别乱动！
 */
let http = require('http');
let qs = require('querystring')

http.createServer((req, res) => {
  req.on('data', (chunk) => {
    console.log(chunk.toString());
    console.log(JSON.parse(chunk.toString()));
  })

  res.write('hello nodejs')
  res.end()
}).listen(3000, () => {
  console.log('server is running');
})

